// -----------------------------------------------------------------------
//  <copyright file="SettingItemByDefinitionSpec.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024-04-18 13:04</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Settings.Domain.Entities;


namespace DaprPlus.Settings.Domain.Specs;

public class SettingItemByDefinitionIdSpec(long definitionId)
    : SpecificationBase<SettingItem>(m => m.SettingDefinitionId == definitionId)
{ }

public class SettingItemByDefinitionTypeNameSpec(string typeName)
    : SpecificationBase<SettingItem>(m => m.SettingDefinition.TypeName == typeName)
{ }